package com.gl.saasservice.home.controller;

import com.gl.framework.web.response.Result;
import com.gl.saasservice.home.service.HomeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * 首页数据 [显示基本数据：平台创建的机构数量，企业端用户总数，APP注册用户总数]
 */

@Controller
@RequestMapping("/home")
public class HomeController {

    @Autowired
    private HomeService homeService;

    @GetMapping("/page")
    @ResponseBody
    public Result page(@RequestHeader String token){

        return homeService.page(token);
    }

}
